package com.woniuxy.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
import java.io.Serializable;
import java.util.List;

/**
 * (Role)实体类
 *
 * @author zjx
 * @since 2021-05-14 19:35:31
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
@ApiModel("Role角色实体类")
public class Role implements Serializable {
    private static final long serialVersionUID = -97975441745678621L;
    @ApiModelProperty("角色id")
    private Integer id;
    @ApiModelProperty("角色名")
    private String name;
    @ApiModelProperty("角色描述")
    private String description;
    @ApiModelProperty("角色状态")
    private Integer status;
    @ApiModelProperty("角色创建者")
    private String creater;
    @ApiModelProperty("角色创建时间")
    private Date createTime;
    @ApiModelProperty("角色修改时间")
    private Date updateTime;
    @ApiModelProperty("角色拥有的菜单集合")
    private List<Menu> menus;
    @ApiModelProperty("角色拥有的权限集合")
    private List<Permission> permissions;
}
